package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutinePathologyRs;
import com.zhijian.medical.entity.vo.request.RoutinePathologyRsSearchVo;
import com.zhijian.medical.entity.vo.request.RoutinePathologyRsSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyRsVo;
import com.zhijian.medical.entity.vo.response.RoutineSingleSampleRsVo;
import com.zhijian.util.page.Page;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 常规病理-染色 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-07-26 16:47:47
 */
public interface RoutinePathologyRsService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    RoutinePathologyRs selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    RoutinePathologyRsVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param routinePathologyRs
    * @return
    */
    Long insert(RoutinePathologyRs routinePathologyRs);

    /**
    * 动态新增
    *
    * @param routinePathologyRs
    * @return
    */
    Long insertSelective(RoutinePathologyRs routinePathologyRs);

    /**
    * 更改
    *
    * @param routinePathologyRs
    * @return
    */
    boolean update(RoutinePathologyRs routinePathologyRs);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(RoutinePathologyRs record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(RoutinePathologyRsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(RoutinePathologyRsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param routinePathologyRsSearchVo
    * @return
    */
    RoutinePathologyRsVo selectOne(RoutinePathologyRsSearchVo routinePathologyRsSearchVo);

    /**
    * 总数
    *
    * @param routinePathologyRsSearchVo
    * @return
    */
    Integer count(RoutinePathologyRsSearchVo routinePathologyRsSearchVo);

    /**
    * 列表
    *
    * @param routinePathologyRsSearchVo
    * @return
    */
    List<RoutinePathologyRsVo> selectList(RoutinePathologyRsSearchVo routinePathologyRsSearchVo);

    /**
    * 分页查询
    *
    * @param routinePathologyRsSearchVo
    * @return
    */
    Page<RoutinePathologyRsVo> selectPage(RoutinePathologyRsSearchVo routinePathologyRsSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<RoutinePathologyRs> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param routinePathologyRsSearchVo
    * @return
    */
    void deleteByCondition(RoutinePathologyRsSearchVo routinePathologyRsSearchVo);

    @Transactional(rollbackFor = Exception.class, value = "localTransactionManager")
    boolean inputNums(String numbers);

    RoutinePathologyRsVo pathologyInfo(String numbers);

    List<RoutineSingleSampleRsVo> pathologySampleRsInfo();
}